﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Optimization;

namespace DocManager
{

	// Tutorial
	// http://www.asp.net/mvc/tutorials/mvc-4/bundling-and-minification

	public class BundleConfig
	{
		

		public static void RegisterGlobalBundles( BundleCollection bundles )
		{
			// Scripts que serão utilizados em todas as páginas
			bundles.Add( new ScriptBundle( "~/Scripts/Main" ).Include( 
                // Frameworks
				"~/scripts/jquery-1.9.0.js"
				, "~/scripts/jquery-ui/jquery-ui-1.10.0.js"
				, "~/scripts/knockout-2.2.1.js"
                , "~/scripts/wijmo/jquery.wijmo.wijutil.js"

                // Helpers & Utilities
                , "~/scripts/jquery.urldecoder.js"
                , "~/scripts/globalize.js"
                , "~/scripts/globalize.culture.pt-BR.js"
                
                // Client Object Model
                //, "~/scripts/platform/SearcherViewModel.js"
				) );

            // Scripts que são utilizados durante a navegação
            bundles.Add( new ScriptBundle( "~/Scripts/Navigation" ).Include(
                "~/scripts/wijmo/jquery.wijmo.wijgrid.js",
                "~/scripts/wijmo/jquery.wijmo.superpanel.js",
                "~/scripts/wijmo/jquery.wijmo.wijpager.js",
                "~/scripts/wijmo/jquery.wijmo.wijdatasource.js"
                ) );

			// Css utilizados em todo o site
			bundles.Add( new StyleBundle( "~/Content/Main" ).Include( 
				"~/content/main.css",
				"~/content/header.css",
                "~/content/wijmo/jquery.wijmo.wijutil.css"
				) );

            // Css utiliza durante a navegação 
            bundles.Add( new StyleBundle( "~/Content/Navigation" ).Include(
                "~/content/wijmo/jquery.wijmo.wijgrid.css",
                "~/content/wijmo/jquery.wijmo.wijsuperpanel.css",
                "~/content/wijmo/jquery.wijmo.pager.css"
                ) );
		}
	}
}